<template>
	<view class="share">
		<!-- <view class="back" @click="onBack">
			<u-icon name="arrow-left" color="#fff" size="26"></u-icon>
		</view> -->
		<image :show-menu-by-longpress="true" :src="poster" class="hb" mode="widthFix"></image>
		
		<!-- <view class="code">
			<u-image src="/static/temporary/code.png" width="245rpx" height="245rpx"></u-image>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				poster:''
			};
		},
		onLoad() {
			uni.showLoading({
				title:"海报生成中~"
			})
			this.$api.post({
			    url: "/ebapi/user_api/user_spread_banner_list",
			    // data: {},
			    success: (res) => {
					// this.country = res;
					console.log('user_spread_banner_list',res[0].poster)
					this.poster = res[0].poster;
					uni.hideLoading();
				},
			 })
		},
		methods: {
			// 返回
			onBack() {
				this.$uniApi.cback(1)
			},
		}
	};
</script>

<style lang="scss">
	page {
		padding: 0;
		background: #fff;
	}
.hb{
	width: 750rpx;
}
	.share {
		// background-image: url("https://jyapi.rapidship.cn/public/temporary/share.png");
		// background-size: 100% 100%;
		// background-repeat: no-repeat;
		// height: 100vh;
		// width: 100vw;

		.back {
			position: absolute;
			top: 50rpx;
			left: 30rpx;
			z-index: 999;
		}

		.code {
			position: absolute;
			left: 243rpx;
			top: 870rpx;
		}
	}
</style>